import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import 'package:huobi/configs/app_style_config.dart';
import 'package:huobi/routers/app_routers.dart';
import 'package:huobi/routers/hb_router.dart';


import 'pages/main/main_page.dart';

void main() {
  _configRouter();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'HUOBI Demo',
      theme: ThemeData(
        visualDensity: VisualDensity.adaptivePlatformDensity,
        primaryColor: AppStyleConfig.themColor,
      ),
      home: MainPage(),
    );
  }


}

_configRouter(){
  final router = FluroRouter();
  AppRouters.configureRoutes(router);
  HBRouter.router = router;
}
